package com.shop.czlmshop.service;

import com.shop.czlmshop.mapper.UserMapper;
import com.shop.czlmshop.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @Author: xmy
 * @Date: 2019-05-06 16:52
 * @Version 1.0
 */
@Service
public class UserServiceImpl implements UserService {

    @Resource
    private UserMapper userMapper;

    /**
     * @param user
     * @description: 新增用户
     * @param: User
     * @return: int
     * @auther: XMY
     * @date: 2019-05-06 16:51
     */
    @Override
    public int addUser(User user) {
        return userMapper.addUser(user);
    }
}
